package collection;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

public class LestDemo4 {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        list.add("one");
        list.add("two");
        list.add("three");
        String[] A = list.toArray(new String[list.size()]);
        System.out.println(Arrays.toString(A));
    }
}
